<template>
	<view>
		<view class="top">
			<u-avatar :src="avatarUrl" size="large"></u-avatar>
			<text class="to_login" @click="toLogin">登录</text>
		</view>
		<view class="menu">
			<u-grid :col="4">
				<u-grid-item>
					<image src="../../static/images/quanbudingdan.png" mode=""></image>
					<view class="grid-text">全部订单</view>
				</u-grid-item>
				<u-grid-item>
					<image src="../../static/images/daifukuan.png" mode=""></image>
					<view class="grid-text">待付款</view>
				</u-grid-item>
				<u-grid-item>
					<image src="../../static/images/daishouhuo.png" mode=""></image>
					<view class="grid-text">待收货</view>
				</u-grid-item>
				<u-grid-item>
					<image src="../../static/images/yiwancheng.png" mode=""></image>
					<view class="grid-text">已完成</view>
				</u-grid-item>
			</u-grid>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				avatarUrl: '',
				customStyle: {
					
				},
			}
		},
		methods: {
			toLogin() {
				uni.navigateTo({
					url:'../login/login'
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		box-sizing: border-box;
		padding: 0 2%;
		.top {
			display: flex;
			padding-top: 50upx;
			align-items: center;
			margin-bottom: 30upx;
		}
		.to_login {
			display: inline-block;
			padding: 10upx 20upx;
			margin-left: 30upx;
			color: #666;
		}
		.menu {
			border-radius: 15upx;
			border: 1upx solid #eee;
			font-size: 26upx;
			margin-bottom: 30upx;
			image {
				width: 60upx;
				height: 60upx;
				margin-bottom: 10upx;
			}
		}
	}
</style>